env = Environment()

DEBUG = ARGUMENTS.get('DEBUG','0')


#env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic'])
#env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic'])

env.Replace(CPPPATH=['/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include','/opt/local/include'])

if DEBUG=='1':
   print "DEBUG"
   env.Replace(CXXFLAGS=['-O2','-Wall','-DDEBUG'])
else:
   print "NO DEBUG"
   env.Replace(CXXFLAGS=['-O2','-Wall'])

#env.SharedLibrary(target='MRF', source=['MRF.cpp'])
#env.SharedLibrary(target='MRF', source=['MRF_RGB.cpp'])

SL = env.SharedLibrary(target='MRF', source=['MRF_RGB.cpp'])

#env.Alias('install', ['../python/'])